/*
 * =====================================================================================
 *       Filename:  TestAATree.cpp
 *
 *    Description:  
 *
 *        Created:  2009年10月25日 22时14分28秒
 *       Revision:  none
 *         Author:  Santal Li (santal), santal.li@gmail.com
 * =====================================================================================
 */

#include "../commons/AATree.h"
#include <cstdlib>
#include <iostream>
#include "../commons/PerformanceClock.h"




int main(){

    PerfomanceClock pc ;
    
    pc.start();

    AATree<int> aatree ; 
    for(int i = 0 ; i<= 1000 ; i++){
        aatree.insert(1 * i) ;
        aatree.insert(2 * i) ;
        aatree.insert(30  * i) ;
        aatree.insert(4 * i) ;
        aatree.insert(54 * i) ;
        aatree.insert(12 * i) ;
        aatree.insert(21 * i) ;
    }

    aatree.printTree() ;
    pc.end();
    cout << "runing time clock:" << pc.usingtime() <<" ( "<< pc.usingsec()  <<"s ) "<< endl ;
 

}



